﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeploymentMaxLib
{
    public class ActionProject
    {
        public Guid Key { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }
        public List<ActionGroup> GroupList { get; set; }
        public List<ActionLog> LogList { get; set; }

        public ActionProject()
        {
        }

        private ActionProject(string pName)
        {
            this.Key = Guid.NewGuid();
            this.Name = pName;
            this.Created = DateTime.Now;
            this.GroupList = new List<ActionGroup>();
            this.LogList = new List<ActionLog>();
        }

        public static ActionProject New(string pName)
        {
            return new ActionProject(pName);
        }
    }
}
